<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<link href="css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	$(function() {
		$("#query").click(function() {
			$("[name='pageNum']").val(1);
			$("form:first").submit();
		});
	});
	function showMsg(msg,uuid){
		top.$('context-msg').style.display = "block";
		top.$('context-msg-text').innerHTML=msg;
		top.$('hid-action').value="store_delete.action?store.uuid="+uuid;
		top.lock.show();
	}
</script>
<div class="content-right">
	<div class="content-r-pic_w">
		<div style="margin: 8px auto auto 12px; margin-top: 6px">
			<span class="page_title">仓库管理</span>
		</div>
	</div>
	<div class="content-text">
		<s:form id="form" action="store_list" method="post">
			<div class="square-o-top">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					style="font-size: 14px; font-weight: bold; font-family:"黑体";">
					<tr>
						<td>仓库名称:</td>
						<td><s:textfield name="storeQuery.name" size="20" /></td>
						<td>管&nbsp;理&nbsp;员:</td>
						<td><s:select name="storeQuery.emp.uuid" list="empList" listKey="uuid" listValue="name" headerKey="-1" headerValue="----请-选-择----" cssClass="kuan"></s:select></td>
						<td><a id="query" href="javascript:void(0)"
							style="float: right;"><img src="images/can_b_01.gif"
								border="0" /></a></td>
						<td><a href="store_addView.action" style="float: right;"><img
								src="images/can_b_02.gif" border="0" /> </a></td>
					</tr>
				</table>
			</div>
			<!--"square-o-top"end-->
			<div class="square-order">
				<s:if test="#storeList.size()==0">
					<center>
						<span style="font-size: 20px; color: #96D34A; font-weight: bold">没有查找到满足条件的数据！</span>
					</center>
				</s:if>
				<s:else>
					<table width="100%" border="1" cellpadding="0" cellspacing="0">
						<tr align="center"
							style="background: url(images/table_bg.gif) repeat-x;">
							<td width="20%" height="30">仓库名称</td>
							<td width="20%">仓库管理员</td>
							<td width="44%">仓库地址</td>
							<td width="16%">操作</td>
						</tr>
						<s:iterator value="storeList">
							<tr align="center" bgcolor="#FFFFFF">
								<td width="13%" height="30">${name }</td>
								<td>${emp.name }</td>
								<td align="left">&nbsp;${address }</td>
								<td><img src="images/icon_3.gif" /> <span
									style="line-height: 12px; text-align: center;"> <s:a
											action="store_addView">
											<s:param name="store.uuid" value="uuid" />
										修改
									</s:a>
								</span> <img src="images/icon_04.gif" /> <span
									style="line-height: 12px; text-align: center;"> <a
										href="javascript:void(0)" class="xiu"
										onclick="showMsg('是否删除该项数据？',${uuid})">删除</a>
								</span></td>
							</tr>
						</s:iterator>
					</table>
					<%@ include file="/WEB-INF/jsps/tools/paging.jsp"%>
				</s:else>
			</div>
		</s:form>
	</div>
	<div class="content-bbg"></div>
</div>
